package com.lesama.my_enum;

// 枚举： Java中一种特殊的类型，常用语信息的标志和分类  -- 1. 常量   2. 枚举： 入参严谨， 提示性更强， 代码优雅

public class EnumTest {
    enum Season {
        SPRING, SUMMER, AUTUMN, WINTER
    }
    public static void main(String[] args) {
        System.out.println(Season.SPRING.ordinal());
        System.out.println(Season.SUMMER.ordinal());
        System.out.println(Season.AUTUMN.ordinal());
        System.out.println(Season.WINTER.ordinal());
    }
}